﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UITesting;
using BackOffice.Context.UltiPro.BackOfficeUIMapClasses;
using BackOffice.Context.UltiPro.Controls;
using Microsoft.VisualStudio.TestTools.UITesting.WinControls;

namespace BackOffice.Context.UltiPro.PageObjects
{
    /// <summary>
    /// Pay Data Entry screen
    /// </summary>
    public static class PayDataEntry
    {
        private static BackOfficeUIMap UIMap
        {
            get
            {
                return new BackOfficeUIMap();
            }
        }

        public static UITestControl EarningsGrid
        {
            get
            {
                return UIMap.UIULTIPROWindow.UIStandardPayDataEntryWindow.UIEarningsGrid.EarningsGrid;
            }
        }

        public static UITestControl DeductionsGrid
        {
            get
            {
                return UIMap.UIULTIPROWindow.UIStandardPayDataEntryWindow.UIDeductionsGrid.DeductionsGrid;
            }
        }

        public static UITestControl TaxesGrid
        {
            get
            {
                return UIMap.UIULTIPROWindow.UIStandardPayDataEntryWindow.UITaxesGrid.TaxesGrid;
            }
        }

        public static UITestControl PDEContextMenu
        {
            get
            {

                return UIMap.UIPDEContextMenu.UIPDEGridContextMenu;
            }
        }

        public static UITestControl SuperFinderPanel
        {
            get
            {
                return UIMap.UIULTIPROWindow.UIStandardPayDataEntryWindow1.UISuperFinderPanel.SuperFinderPanel;
            }
        }

        public static SuperFinder SuperFinderWindow
        {
            get
            {
                return new SuperFinder();
            }
        }

        public static WinButton UIOrganizationButton
        {
            get
            {
                return UIMap.UIULTIPROWindow.UIStandardPayDataEntryWindow1.UIPayEntryOrgCalcGrossUpPanel.PayEntryOrgCalcGrossUpPanel.UIOrganizationButton;
            }
        }

        public static UITestControl PayEntryOrgCalcGrossUpPanel
        {
            get
            {
                return UIMap.UIULTIPROWindow.UIStandardPayDataEntryWindow1.UIPayEntryOrgCalcGrossUpPanel.PayEntryOrgCalcGrossUpPanel;
            }
        }
    }
}
